﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bohdan.Arch.Messaging.Special
{
    public class SmartWaitMessage : GeneralMessage
    {
        public override Guid TargetSubscriberId
        {
            get { return TimeMeasurerSubscriber._Id; }
        }

        public SmartWaitMessage(IsMessageStillActualDelegate actualCallback, TimeSpan duration, TimeSpan checkInterval)
        {
            ActualCallback = actualCallback;
            Duration = duration;
            CheckInterval = checkInterval;
        }

        public IsMessageStillActualDelegate ActualCallback { get; private set; }
        public TimeSpan Duration { get; private set; }
        public TimeSpan CheckInterval { get; private set; }

    }
}
